package com.chushouya.manager.dto.admin.finance;

import com.chushouya.manager.constants.AccountUserTypeEnum;
import com.general.framework.core.enums.StatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("资金账户")
public class FinanceAccountDTO {

    @ApiModelProperty("资金账户ID")
    private Long accountId;

    @ApiModelProperty("账户用户类型【0回收商/1门店】")
    private Integer accountUserType;

    @ApiModelProperty("账户用户类型【0回收商/1门店】")
    private String accountUserTypeText;

    @ApiModelProperty("账户用户ID")
    private Long accountUserId;

    @ApiModelProperty("账户用户名")
    private String accountUserName;

    @ApiModelProperty("钱包余额")
    private BigDecimal walletBalance;

    @ApiModelProperty("直付通smID")
    private String smId;

    @ApiModelProperty("签约协议号")
    private String agreementNo;

    @ApiModelProperty("钱包id")
    private String userWalletId;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("账户状态")
    private String statusText;

    @ApiModelProperty("账户描述")
    private String accountRemark;

    @ApiModelProperty("账户开通时间")
    private Date createTime;

    public String getAccountUserTypeText() {
        return AccountUserTypeEnum.getDesc(this.accountUserType);
    }

    public String getStatusText() {
        return StatusEnum.getDesc(this.status);
    }
}
